<!DOCTYPE html>
<%@ include file="/common/taglibs.jsp"%>
<html lang="en">
<head>
<meta http-equiv="Cache-Control" content="no-store" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="<c:url value="/images/favicon.ico"/>" />
<title><decorator:title /> | <fmt:message key="webapp.name" /></title>

<link rel="stylesheet" type="text/css" media="all"
	href="<c:url value='/styles/lib/bootstrap.min.css'/>" />
<link rel="stylesheet" type="text/css" media="all"
	href="<c:url value='/styles/lib/bootstrap-responsive.min.css'/>" />
<link rel="stylesheet" type="text/css" media="all"
	href="<c:url value='/styles/style.css'/>" />

<!-- GWT  -->
<!-- <link type="text/css" rel="stylesheet" href="medicine/reset.css">
        <script type="text/javascript" language="javascript" src="medicine/medicine.nocache.js"></script>
    	<link rel="stylesheet" type="text/css" href="resources/css/gxt-all.css" /> -->
<!-- end GWT  -->

<decorator:head />
</head>
<body style="background-color: white;" 
	<decorator:getProperty property="body.id" writeEntireProperty="true"/>
	<decorator:getProperty property="body.class" writeEntireProperty="true"/>
	>
	
	<script type="text/javascript"
		src="<c:url value='/scripts/lib/jquery-1.7.1.min.js'/>"></script>
	<script type="text/javascript"
		src="<c:url value='/scripts/lib/bootstrap.js'/>"></script>
	<script type="text/javascript"
		src="<c:url value='/scripts/lib/plugins/jquery.cookie.js'/>"></script>
	<script type="text/javascript"
		src="<c:url value='/scripts/script.js'/>"></script>
	
		
		
		
	<c:set var="currentMenu" scope="request">
		<decorator:getProperty property="meta.menu" />
	</c:set>

	<!-- GWT  -->
	<!-- <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe> -->
	<!-- end GWT  -->

<!-- Menu + header -->
	<div class="navbar navbar-fixed-top" id="divHeader">
		<div class="navbar-inner">
			<div class="container-fluid">
				<%-- <fmt:message	key="webapp.name" --%> 
				<div style="float: left;height: 40px;" id="gwtRibbonMenu"></div>
				<a class="brand" href="<c:url value='/'/>">
				MEDICINE</a>
				<%-- <menu:useMenuDisplayer name="Velocity" config="navbarMenu.vm"
					permissions="rolesAdapter">
					<ul class="nav">
						<c:if test="${empty pageContext.request.remoteUser}">
							<li class="active"><a href="<c:url value="/login"/>"><fmt:message
										key="login.title" /></a></li>
						</c:if>
						<menu:displayMenu name="MainMenu" />
						<menu:displayMenu name="UserMenu" />
						<menu:displayMenu name="AdminMenu" />
						<menu:displayMenu name="Logout" />
					</ul>
				</menu:useMenuDisplayer> --%>

				<%-- <c:if test="${pageContext.request.locale.language 'en'}">
					<div id="switchLocale">
						<a href="<c:url value='/?locale=en'/>"> <fmt:message
								key="webapp.name" /> in English
						</a>
					</div>
				</c:if> --%>
			</div>
		</div>
	</div>
	<div id="gwtcontent" style="background-color: white;"></div>
<!-- admin page -->
	<div class="container-fluid">
		<%@ include file="/common/messages.jsp"%>
		<div class="row-fluid">
			<decorator:body />
			
			<c:if test="${currentMenu == 'AdminMenu'}">
				<div class="span2">
					<menu:useMenuDisplayer name="Velocity" config="navlistMenu.vm"
						permissions="rolesAdapter">
						<menu:displayMenu name="AdminMenu" />
					</menu:useMenuDisplayer>
				</div>
			</c:if>
		</div>
	</div>

		<%=(request.getAttribute("scripts") != null) ? request.getAttribute("scripts") : ""%>
<!-- footer -->
	<div id="footer" id="divFooter" style="position : fixed; bottom: 0px;width: 100%;padding: 7px 0 7px 0;" class="navbar-inner">
		<span class="left"><fmt:message key="webapp.version" /> <c:if
				test="${pageContext.request.remoteUser != null}">
            | <fmt:message key="user.status" /> ${pageContext.request.remoteUser}
            </c:if> </span> <span class="right"> &copy; <fmt:message
				key="copyright.year" /> <a href="<fmt:message key="company.url"/>"><fmt:message
					key="company.name" /></a>
		</span>
	</div>	
</body>
</html>
